<%--
  Created by IntelliJ IDEA.
  User: tuhao
  Date: 2017/7/4
  Time: 9:32
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false"%>

<div class="bjui-pageHeader" style="background-color: #fefefe; border-bottom: none;">
    <form data-toggle="ajaxsearch" id="findglobalform" data-options="{searchDatagrid:$.CurrentNavtab.find('#datagrid-globals')}">
        <fieldset>
            <legend style="font-weight:normal;">搜索：</legend>
            <div style="margin:0; padding:1px 5px 5px;">
                <span>电话号码：</span>
                <input name="sms.to" size="10">&nbsp;
                <span>发送时间：</span>
                <input name="fromTo.from" type="text" value="${from}" data-toggle="datepicker" placeholder="点击选择日期" data-pattern="yyyy-MM-dd" readonly="true">---
                <input name="fromTo.to" type="text" value="${to}" data-toggle="datepicker" placeholder="点击选择日期" data-pattern="yyyy-MM-dd" readonly="true">&nbsp;
                <div class="btn-group">
                    <button type="submit" class="btn-green" data-icon="search">查询</button>&nbsp;
                    <button type="reset" class="btn-orange" data-icon="times">重置</button>
                </div>
            </div>
        </fieldset>
    </form>
</div>
<div class="bjui-pageContent">
    <table class="table table-bordered" id="datagrid-globals" data-toggle="datagrid" data-options="{
        loadType:'GET',
        filterThead:false,
        columnFilter:false,
        columnMenu:false,
        showCheckboxcol:true,
        height: '98%',
        width:'100%',
        gridTitle : '用户开户提交数据列表',
        showToolbar: true,
        toolbarItem: 'import,export,exportf',
        dataUrl: '/sms_api/findSMSList',
        dataType: 'json',
        paging: {pageSize:2,selectPageSize:'15,30'},
        linenumberAll: true
    }">
        <thead>
        <tr>
            <th data-options="{name:'appId',align:'center'}">主键</th>
            <th data-options="{name:'templateId',align:'center'}">模板id</th>
            <th data-options="{name:'to',align:'center'}">手机号码</th>
            <th data-options="{name:'param',align:'center'}">验证码,有效时间</th>
            <th data-options="{name:'sendTime',align:'center',type:'date',pattern:'yyyy-MM-dd HH:mm',render:function(value){return value?value.substr(0,19):value}}">
                发送时间
            </th>
        </tr>
        </thead>
    </table>
</div>